<?php
/**
 * Created by PhpStorm.
 * User: wangye
 * Date: 19-2-25
 * Time: 上午9:59
 */
# 用php写出显示客户端ip与服务器ip的代码
$service = $_SERVER['SERVER_ADDR'];
$clent = $_SERVER['REMOTE_ADDR'];

echo "客户端ip${clent} 服务器ip ${service}";